package com.holly.unit.bpmn.activiti.ext;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.holly.unit.bpmn.activiti.entity.ActivitiZNewsTemplate;
import com.holly.unit.bpmn.activiti.mapper.ActivitiZNewsTemplateMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述: 流程消息扩展实现类
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/3/9 10:26
 */
@Service
public class ActivitiZNewsTemplateService extends ServiceImpl<ActivitiZNewsTemplateMapper, ActivitiZNewsTemplate> {

    /***
     * 根据消息模板的编码查询所有的消息模板信息
     * @param code 模板编码
     * @return
     */
    public List<ActivitiZNewsTemplate> selectByCode(String code) {
        return this.baseMapper.selectByCode(code);
    }
}
